// default package
// Generated 28 Jul, 2014 8:04:07 PM by Hibernate Tools 3.4.0.CR1
package com.galaxy.bean;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * PaypalCert generated by hbm2java
 */
@Entity
@Table(name = "paypal_cert", catalog = "magento")
public class PaypalCert implements java.io.Serializable {

	private Short certId;
	private CoreWebsite coreWebsite;
	private String content;
	private Date updatedAt;

	public PaypalCert() {
	}

	public PaypalCert(CoreWebsite coreWebsite) {
		this.coreWebsite = coreWebsite;
	}

	public PaypalCert(CoreWebsite coreWebsite, String content, Date updatedAt) {
		this.coreWebsite = coreWebsite;
		this.content = content;
		this.updatedAt = updatedAt;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "cert_id", unique = true, nullable = false)
	public Short getCertId() {
		return this.certId;
	}

	public void setCertId(Short certId) {
		this.certId = certId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "website_id", nullable = false)
	public CoreWebsite getCoreWebsite() {
		return this.coreWebsite;
	}

	public void setCoreWebsite(CoreWebsite coreWebsite) {
		this.coreWebsite = coreWebsite;
	}

	@Column(name = "content", length = 65535)
	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "updated_at", length = 19)
	public Date getUpdatedAt() {
		return this.updatedAt;
	}

	public void setUpdatedAt(Date updatedAt) {
		this.updatedAt = updatedAt;
	}

}
